package com.qj.yantaishan.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.qj.yantaishan.mapper.ProductCategoryFeedbackMapper;
import com.qj.yantaishan.domain.ProductCategoryFeedback;
import com.qj.yantaishan.service.IProductCategoryFeedbackService;
import com.qj.yantaishan.common.core.text.Convert;

/**
 * 分类反馈Service业务层处理
 * 
 * @author qihe
 * @date 2022-07-22
 */
@Service
@Primary
public class ProductCategoryFeedbackServiceImpl    extends ServiceImpl<ProductCategoryFeedbackMapper, ProductCategoryFeedback>  implements IProductCategoryFeedbackService
{
    @Autowired
    private ProductCategoryFeedbackMapper productCategoryFeedbackMapper;

    /**
     * 查询分类反馈
     * 
     * @param pigcmsId 分类反馈主键
     * @return 分类反馈
     */
    @Override
    public ProductCategoryFeedback selectProductCategoryFeedbackByPigcmsId(Integer pigcmsId)
    {
        return productCategoryFeedbackMapper.selectProductCategoryFeedbackByPigcmsId(pigcmsId);
    }

    /**
     * 查询分类反馈列表
     * 
     * @param productCategoryFeedback 分类反馈
     * @return 分类反馈
     */
    @Override
    public List<ProductCategoryFeedback> selectProductCategoryFeedbackList(ProductCategoryFeedback productCategoryFeedback)
    {
        return productCategoryFeedbackMapper.selectProductCategoryFeedbackList(productCategoryFeedback);
    }

    /**
     * 新增分类反馈
     * 
     * @param productCategoryFeedback 分类反馈
     * @return 结果
     */
    @Override
    public int insertProductCategoryFeedback(ProductCategoryFeedback productCategoryFeedback)
    {
        return productCategoryFeedbackMapper.insertProductCategoryFeedback(productCategoryFeedback);
    }

    /**
     * 修改分类反馈
     * 
     * @param productCategoryFeedback 分类反馈
     * @return 结果
     */
    @Override
    public int updateProductCategoryFeedback(ProductCategoryFeedback productCategoryFeedback)
    {
        return productCategoryFeedbackMapper.updateProductCategoryFeedback(productCategoryFeedback);
    }

    /**
     * 批量删除分类反馈
     * 
     * @param pigcmsIds 需要删除的分类反馈主键
     * @return 结果
     */
    @Override
    public int deleteProductCategoryFeedbackByPigcmsIds(String pigcmsIds)
    {
        return productCategoryFeedbackMapper.deleteProductCategoryFeedbackByPigcmsIds(Convert.toStrArray(pigcmsIds));
    }

    /**
     * 删除分类反馈信息
     * 
     * @param pigcmsId 分类反馈主键
     * @return 结果
     */
    @Override
    public int deleteProductCategoryFeedbackByPigcmsId(Integer pigcmsId)
    {
        return productCategoryFeedbackMapper.deleteProductCategoryFeedbackByPigcmsId(pigcmsId);
    }
}
